const allRoutes = [
  {
    path: "welcome",
    name: "welcome",
    component: () => import(/*webpackChunkName:welcome*/"../pages/Home/Welcome"),
    meta: {
      // 存储一些属性
      fullPath: "/welcom", //将当前页面的路由保存下来
      icon: "",
      name: '管理首页',
    }
  },
  {
    path: "users",
    name: "users",
    component: () => import(/*webpackChunkName:welcome*/"../pages/Home/Users"),
    meta: {
      // 存储一些属性
      fullPath: "/users", //将当前页面的路由保存下来
      icon: "",
      name: '用户管理',
    }
  },
  {
    path: "studentmanager",
    name: "studentmanager",
    redirect: "/studentmanager/studentmanager/studentproduct",
    component: () => import(/*webpackChunkName:welcome*/"../pages/Home/StudentManager"),
    meta: {
      // 存储一些属性
      fullPath: "/studentmanager", //将当前页面的路由保存下来
      icon: "",
      name: '学员管理',
    },
    children: [
      {
        path: "studentmanager/studentdormitory",
        name: "studentdormitory",
        component: () => import(/*webpackChunkName:welcome*/"../pages/Home/StudentManager/StudentDormitory"),
        meta: {
          // 存储一些属性
          fullPath: "/studentdormitory", //将当前页面的路由保存下来
          icon: "",
          name: '学员宿舍',
        }
      },
      {
        path: "studentmanager/studentproduct",
        name: "studentproduct",
        component: () => import(/*webpackChunkName:welcome*/"../pages/Home/StudentManager/StudentProduct"),
        meta: {
          // 存储一些属性
          fullPath: "/studentproduct", //将当前页面的路由保存下来
          icon: "",
          name: '学员项目管理',
        }
      },
      {
        path: "studentmanager/studentprofill",
        name: "studentprofill",
        component: () => import(/*webpackChunkName:welcome*/"../pages/Home/StudentManager/StudentProfill"),
        meta: {
          // 存储一些属性
          fullPath: "/studentprofill", //将当前页面的路由保存下来
          icon: "",
          name: '学员资料',
        }
      },
    ]
  },
  {
    path: "statistics",
    name: "statistics",
    component: () => import(/*webpackChunkName:welcome*/"../pages/Home/Statistics"),
    meta: {
      // 存储一些属性
      fullPath: "/statistics", //将当前页面的路由保存下来
      icon: "",
      name: '数据统计',
    }
  },
  {
    path: "mine",
    name: "mine",
    component: () => import(/*webpackChunkName:welcome*/"../pages/Home/Mine"),
    meta: {
      // 存储一些属性
      fullPath: "/mine", //将当前页面的路由保存下来
      icon: "",
      name: '我的中心',
    }
  },
  {
    path: "/attendance",
    name: "attendance",
    component: () => import(/*webpackChunkName:welcome*/"../pages/Home/Attendance"),
    meta: {
      // 存储一些属性
      fullPath: "/attendance", //将当前页面的路由保存下来
      icon: "",
      name: '考勤管理',
    }
  },
]
export default allRoutes